# 阿里云的镜像使用，参考https://cr.console.aliyun.com/cn-hangzhou/instances/artifact
FROM dragonwell-registry.cn-hangzhou.cr.aliyuncs.com/dragonwell/dragonwell:8
#FROM frolvlad/alpine-oraclejdk8:slim
VOLUME /tmp
ADD SpringBootDockerDemo-0.0.1-SNAPSHOT.jar app.jar
ADD application.yml bootstrap.yml
EXPOSE 8081
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar", "--spring.config.location=./bootstrap.yml"]

